<template>
  <el-config-provider :locale="locale" size="large">
    <router-view />
  </el-config-provider>
</template>

<script>
  import { ElConfigProvider } from 'element-plus'
  import zhCn from 'element-plus/lib/locale/lang/zh-cn'
  import { defineComponent, onMounted } from 'vue'
  import { useStore } from 'vuex'

  export default defineComponent({
    components: {
      ElConfigProvider,
    },
    data() {
      return {
        locale: zhCn,
      }
    },
    setup() {
      const store = useStore()
      onMounted(() => {
        store.dispatch('app/initBrowserInfo')
      })
    },
  })
  // export default {
  //   name: 'App',
  //   components: {},
  //   setup() {},
  // }
</script>

<style></style>
